package com.prime.tutorial.moviestore.view.logistics;

import com.prime.tutorial.moviestore.service.logistics.LogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * Provides view to mapping available devices on storage to devices,
 * planned for installation
 * Users: me
 * Date: 19 бер 2010
 * Time: 23:54:25
 * @author iryna.masyuk
 */
@Component("updateAvailable")
@Scope("request")
public class UpdateAvailable implements Serializable {
    private LogisticsService logisticsService;

    @Autowired
    public UpdateAvailable(LogisticsService logisticsService) {
        this.logisticsService = logisticsService;
    }
    public String updateAvailable(){
        logisticsService.updateApproved();
        return null;
    }
}
